<ul class="basictab">
<li><a href="/index/globaltopmerchandise">Top Merchandise</a></li>
<li><a href="/index/administrators">Administrator Accounts</a></li>
</ul>
<div class="basictabdiv">
<?php
	$cash_advances_for_form = array();
	$i=1;
	foreach( $this->cash_advance_items as $cash_advance )
	{
		$desc_name = "desc$i";
		$amt_name = "amt$i";
		
		$cash_advances_for_form[$desc_name] = $cash_advance['description'];
		$cash_advances_for_form[$amt_name] = $cash_advance['amt'];
		                                   
		$i++;
	}
	
	$cashAdvanceForm = new CashAdvanceItemsForm();
	$cashAdvanceForm->populate( $cash_advances_for_form );
	$renderedForm = $cashAdvanceForm->render_with_template( "cashadvancestable.xhtml" );
	echo $renderedForm;
 ?>
</div>
